﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using NHibernate.Mapping;

namespace NHibernate.Audit.Cfg
{
    public class DefaultRevisionConfiguration : RevisionConfiguration 
    {

        public DefaultRevisionConfiguration()
        {
            RevisionEntityName = GetRevisionClass().FullName;
        }

        public override System.Type GetRevisionClass()
        {
            return typeof(RevisionInfo<Guid>);
        }

        public override string RevisionEntityName { get; set;}

        public override string GetRevisionIdentityPropertyName()
        {
            return "Revision";
        }

        public override string GetRevisionTimestampPropertyName()
        {
            return "Timestamp";
        }
    }
}
